.class Lcom/waiqin365/lightapp/diaobodan/k;
.super Landroid/os/Handler;


# instance fields
.field private a:Ljava/lang/ref/WeakReference;


# direct methods
.method public constructor <init>(Lcom/waiqin365/lightapp/diaobodan/AddDBDActivity;)V
    .locals 1

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    new-instance v0, Ljava/lang/ref/WeakReference;

    invoke-direct {v0, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/diaobodan/k;->a:Ljava/lang/ref/WeakReference;

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 6

    const/4 v5, 0x0

    const/4 v4, 0x0

    iget-object v0, p0, Lcom/waiqin365/lightapp/diaobodan/k;->a:Ljava/lang/ref/WeakReference;

    invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/diaobodan/AddDBDActivity;

    if-nez v0, :cond_0

    :goto_0
    return-void

    :cond_0
    invoke-virtual {v0}, Lcom/waiqin365/lightapp/diaobodan/AddDBDActivity;->dismissProgressDialog()V

    iget v1, p1, Landroid/os/Message;->what:I

    packed-switch v1, :pswitch_data_0

    goto :goto_0

    :pswitch_0
    iget-object v1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v1, Lcom/waiqin365/lightapp/diaobodan/b/a/o;

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/diaobodan/b/a/o;->b()Z

    move-result v2

    if-eqz v2, :cond_3

    iget-object v2, v1, Lcom/waiqin365/lightapp/diaobodan/b/a/o;->b:Ljava/lang/String;

    if-eqz v2, :cond_2

    const-string/jumbo v2, "1"

    iget-object v3, v1, Lcom/waiqin365/lightapp/diaobodan/b/a/o;->b:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_2

    invoke-static {v0}, Lcom/waiqin365/lightapp/diaobodan/AddDBDActivity;->y(Lcom/waiqin365/lightapp/diaobodan/AddDBDActivity;)Z

    move-result v2

    if-eqz v2, :cond_1

    new-instance v1, Ljava/util/HashMap;

    invoke-direct {v1}, Ljava/util/HashMap;-><init>()V

    new-instance v2, Ljava/util/ArrayList;

    invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V

    const-class v3, Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesProcessSelectActivity;

    invoke-interface {v2, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    const-class v3, Lcom/waiqin365/lightapp/visit/SeniorVisitProcessSelectActivity;

    invoke-interface {v2, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    invoke-static {}, Lcom/fiberhome/gaea/client/a/b;->a()Lcom/fiberhome/gaea/client/a/b;

    move-result-object v3

    const-string/jumbo v4, "reinit_activity"

    invoke-virtual {v3, v4, v1, v2}, Lcom/fiberhome/gaea/client/a/b;->a(Ljava/lang/String;Ljava/lang/Object;Ljava/util/List;)V

    invoke-static {v0}, Lcom/waiqin365/base/db/jxccache/f;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/jxccache/f;

    move-result-object v1

    invoke-static {v0}, Lcom/waiqin365/lightapp/diaobodan/AddDBDActivity;->e(Lcom/waiqin365/lightapp/diaobodan/AddDBDActivity;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/waiqin365/base/db/jxccache/f;->f(Ljava/lang/String;)Z

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/diaobodan/AddDBDActivity;->finish()V

    :goto_1
    invoke-static {}, Ljava/util/UUID;->randomUUID()Ljava/util/UUID;

    move-result-object v1

    invoke-virtual {v1}, Ljava/util/UUID;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/waiqin365/lightapp/diaobodan/AddDBDActivity;->b(Lcom/waiqin365/lightapp/diaobodan/AddDBDActivity;Ljava/lang/String;)Ljava/lang/String;

    const v1, 0x7f08079c

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/diaobodan/AddDBDActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/diaobodan/AddDBDActivity;->showToast(Ljava/lang/String;)V

    invoke-static {v0}, Lcom/waiqin365/lightapp/diaobodan/AddDBDActivity;->r(Lcom/waiqin365/lightapp/diaobodan/AddDBDActivity;)Landroid/widget/EditText;

    move-result-object v1

    const-string/jumbo v2, ""

    invoke-virtual {v1, v2}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    invoke-static {v0}, Lcom/waiqin365/lightapp/diaobodan/AddDBDActivity;->d(Lcom/waiqin365/lightapp/diaobodan/AddDBDActivity;)Landroid/view/View;

    move-result-object v1

    const/16 v2, 0x8

    invoke-virtual {v1, v2}, Landroid/view/View;->setVisibility(I)V

    :goto_2
    invoke-static {v0}, Lcom/waiqin365/lightapp/diaobodan/AddDBDActivity;->u(Lcom/waiqin365/lightapp/diaobodan/AddDBDActivity;)Landroid/widget/Button;

    move-result-object v0

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setEnabled(Z)V

    goto/16 :goto_0

    :cond_1
    invoke-static {v0}, Lcom/waiqin365/base/db/jxccache/f;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/jxccache/f;

    move-result-object v2

    invoke-static {v0}, Lcom/waiqin365/lightapp/diaobodan/AddDBDActivity;->e(Lcom/waiqin365/lightapp/diaobodan/AddDBDActivity;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Lcom/waiqin365/base/db/jxccache/f;->f(Ljava/lang/String;)Z

    invoke-static {}, Lcom/fiberhome/gaea/client/a/b;->a()Lcom/fiberhome/gaea/client/a/b;

    move-result-object v2

    const-string/jumbo v3, "reinit_activity"

    const-class v4, Lcom/waiqin365/lightapp/diaobodan/DBDListActivity;

    invoke-virtual {v2, v3, v5, v4}, Lcom/fiberhome/gaea/client/a/b;->a(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Class;)V

    new-instance v2, Landroid/content/Intent;

    const-class v3, Lcom/waiqin365/lightapp/diaobodan/DBDDetailActivity;

    invoke-direct {v2, v0, v3}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string/jumbo v3, "id"

    iget-object v1, v1, Lcom/waiqin365/lightapp/diaobodan/b/a/o;->d:Ljava/lang/String;

    invoke-virtual {v2, v3, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    invoke-virtual {v0, v2}, Lcom/waiqin365/lightapp/diaobodan/AddDBDActivity;->startActivity(Landroid/content/Intent;)V

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/diaobodan/AddDBDActivity;->finish()V

    goto :goto_1

    :cond_2
    iget-object v1, v1, Lcom/waiqin365/lightapp/diaobodan/b/a/o;->c:Ljava/lang/String;

    invoke-static {v0, v1, v4}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    goto :goto_2

    :cond_3
    iget v1, v1, Lcom/waiqin365/lightapp/diaobodan/b/a/o;->a:I

    invoke-static {v0, v1}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;I)V

    goto :goto_2

    :pswitch_1
    iget-object v1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v1, Lcom/waiqin365/lightapp/diaobodan/b/a/m;

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/diaobodan/b/a/m;->b()Z

    move-result v2

    if-eqz v2, :cond_5

    iget-object v2, v1, Lcom/waiqin365/lightapp/diaobodan/b/a/m;->b:Ljava/lang/String;

    if-eqz v2, :cond_4

    const-string/jumbo v2, "1"

    iget-object v3, v1, Lcom/waiqin365/lightapp/diaobodan/b/a/m;->b:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_4

    invoke-static {v0}, Lcom/waiqin365/lightapp/diaobodan/AddDBDActivity;->z(Lcom/waiqin365/lightapp/diaobodan/AddDBDActivity;)Ljava/util/List;

    move-result-object v2

    iget-object v3, v1, Lcom/waiqin365/lightapp/diaobodan/b/a/m;->d:Ljava/util/List;

    invoke-interface {v2, v3}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z

    invoke-static {v0}, Lcom/waiqin365/lightapp/diaobodan/AddDBDActivity;->i(Lcom/waiqin365/lightapp/diaobodan/AddDBDActivity;)Lcom/waiqin365/lightapp/view/SingleSelectViewNew;

    move-result-object v2

    iget-object v3, v1, Lcom/waiqin365/lightapp/diaobodan/b/a/m;->d:Ljava/util/List;

    invoke-virtual {v2, v3}, Lcom/waiqin365/lightapp/view/SingleSelectViewNew;->setValueItems(Ljava/util/List;)V

    invoke-static {v0}, Lcom/waiqin365/lightapp/diaobodan/AddDBDActivity;->m(Lcom/waiqin365/lightapp/diaobodan/AddDBDActivity;)Lcom/waiqin365/lightapp/view/SingleSelectViewNew;

    move-result-object v2

    iget-object v1, v1, Lcom/waiqin365/lightapp/diaobodan/b/a/m;->d:Ljava/util/List;

    invoke-virtual {v2, v1}, Lcom/waiqin365/lightapp/view/SingleSelectViewNew;->setValueItems(Ljava/util/List;)V

    invoke-static {v0}, Lcom/waiqin365/lightapp/diaobodan/AddDBDActivity;->A(Lcom/waiqin365/lightapp/diaobodan/AddDBDActivity;)V

    goto/16 :goto_0

    :cond_4
    iget-object v1, v1, Lcom/waiqin365/lightapp/diaobodan/b/a/m;->c:Ljava/lang/String;

    invoke-static {v0, v1, v4}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/diaobodan/AddDBDActivity;->finish()V

    goto/16 :goto_0

    :cond_5
    iget v1, v1, Lcom/waiqin365/lightapp/diaobodan/b/a/m;->a:I

    invoke-static {v0, v1}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;I)V

    goto/16 :goto_0

    :pswitch_2
    iget-object v1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v1, Lcom/waiqin365/lightapp/diaobodan/b/a/n;

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/diaobodan/b/a/n;->b()Z

    move-result v2

    if-eqz v2, :cond_7

    iget-object v2, v1, Lcom/waiqin365/lightapp/diaobodan/b/a/n;->b:Ljava/lang/String;

    if-eqz v2, :cond_6

    const-string/jumbo v2, "1"

    iget-object v3, v1, Lcom/waiqin365/lightapp/diaobodan/b/a/n;->b:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_6

    invoke-static {v0}, Lcom/waiqin365/lightapp/diaobodan/AddDBDActivity;->B(Lcom/waiqin365/lightapp/diaobodan/AddDBDActivity;)Ljava/util/List;

    move-result-object v2

    invoke-interface {v2}, Ljava/util/List;->clear()V

    invoke-static {v0}, Lcom/waiqin365/lightapp/diaobodan/AddDBDActivity;->B(Lcom/waiqin365/lightapp/diaobodan/AddDBDActivity;)Ljava/util/List;

    move-result-object v0

    iget-object v1, v1, Lcom/waiqin365/lightapp/diaobodan/b/a/n;->d:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z

    goto/16 :goto_0

    :cond_6
    iget-object v1, v1, Lcom/waiqin365/lightapp/diaobodan/b/a/n;->c:Ljava/lang/String;

    invoke-static {v0, v1, v4}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    invoke-static {v0}, Lcom/waiqin365/lightapp/diaobodan/AddDBDActivity;->i(Lcom/waiqin365/lightapp/diaobodan/AddDBDActivity;)Lcom/waiqin365/lightapp/view/SingleSelectViewNew;

    move-result-object v0

    invoke-virtual {v0, v5}, Lcom/waiqin365/lightapp/view/SingleSelectViewNew;->setSelectedItem(Lcom/waiqin365/lightapp/dailyreport/c/a;)V

    goto/16 :goto_0

    :cond_7
    iget v1, v1, Lcom/waiqin365/lightapp/diaobodan/b/a/n;->a:I

    invoke-static {v0, v1}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;I)V

    invoke-static {v0}, Lcom/waiqin365/lightapp/diaobodan/AddDBDActivity;->i(Lcom/waiqin365/lightapp/diaobodan/AddDBDActivity;)Lcom/waiqin365/lightapp/view/SingleSelectViewNew;

    move-result-object v0

    invoke-virtual {v0, v5}, Lcom/waiqin365/lightapp/view/SingleSelectViewNew;->setSelectedItem(Lcom/waiqin365/lightapp/dailyreport/c/a;)V

    goto/16 :goto_0

    nop

    :pswitch_data_0
    .packed-switch 0x404
        :pswitch_0
        :pswitch_1
        :pswitch_2
    .end packed-switch
.end method
